package jicheng1;

public class Airiiner extends Plane {
    private int seats;

    public Airiiner(int weight, int height, String type, int seats) {
        super(weight, height, type);
        this.seats = seats;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public void print() {
        System.out.println("客机的座位数为" + seats);
        super.fly();
        super.speed();
        super.landing();
    }
}
